package com.bank.repository;

import com.bank.entity.User;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepo extends CustomerRepo<User,Integer>{

    @Query("SELECT u FROM User u WHERE u.username=?1")
    User findUserByUserName(String username);
}
